<!DOCTYPE html>
<html>

<head>
  <title></title>
  <script type="text/javascript" src="../../lib/svg-compile/transformer.js"></script>
</head>

<body>
  <script>
    var inputElem = {
      'type': 'Drawing',
      'body': [{
        "type": "CallExpression",
        "name": "Paper",
        "arguments": [{
          "type": "NumberLiteral",
          "value": "100"
        }]
      }]
    };
    var output = transformer(inputElem);
    console.log(output);
       /*
     打印信息如下：
     var output = {
       "tag": "svg",
       "attr": {
         "width": 100,
         "height": 100,
         "viewBox": "0 0 100 100",
         "xmlns": "http://www.w3.org/2000/svg",
         "version": "1.1"
       },
       "body": [{
         "tag": "rect",
         "attr": {
           "x": 0,
           "y": 0,
           "width": 100,
           "height": 100,
           "fill": "rgb(0%, 0%, 0%)"
         }
       }]
     }
    */
  </script>
</body>

</html>